////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   SO
// AUTHOR           :   Victor Zheng 
// DATE CREATE      :   2006/01/10
// DESCRIPTION      :   a ROW file for the function, SO
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/01/10   Victor Zheng    1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.common.web;

import java.util.Iterator;

import com.erp.app.common.ProjectConstants;
import com.erp.app.common.query.SystemConstantsQuery;
import com.erp.framework.controller.form.MultiRowTemplate;
import com.erp.framework.util.CommonUtil;

/**
* <p>A <strong>Row</strong> is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the detail childs.
*
* @author          Victor Zheng 
* @version 1.0     2006/01/10
* @since           FrameWork 1.0
*
*/
public class ItemTaskRow extends MultiRowTemplate {

	//DB Table Name: T_ITEM_TASK

	//PK Attributes
	private String companyCode;                      //DB Column Name: COMPANY_CODE
	private String documentNo;                       //DB Column Name: DOCUMENT_NO
	private String documentNo2;                       //DB Column Name: DOCUMENT_NO
	private String documentType;                     //DB Column Name: DOCUMENT_TYPE
	private String taskLineNo;                       //DB Column Name: LINE_NO

	//Other Attributes
	private String taskTaskCode;                     //DB Column Name: TASK_CODE
	private String taskTaskDesc;                     //DB Column Name: TASK_DESC
	private String taskUserGroup;                    //DB Column Name: USER_GROUP
	private String taskDeadline;                     //DB Column Name: DEADLINE
	private String taskCompleteDate;                 //DB Column Name: COMPLETE_DATE
	private String createUser;                       //DB Column Name: CREATE_USER
	private String createDate;                       //DB Column Name: CREATE_DATE
	private String updateUser;                       //DB Column Name: UPDATE_USER
	private String updateDate;                       //DB Column Name: UPDATE_DATE
	private String taskUserCode;                     //DB Column Name: USER_CODE
	private String taskExpStartDate;                 //DB Column Name: EXP_START_DATE
	private String taskExpFinishDate;                //DB Column Name: EXP_FINISH_DATE
	private String taskDuration;                     //DB Column Name: DURATION
	private String taskRefLineNo;                    //DB Column Name: REF_LINE_NO
	private String taskRefDuration;                  //DB Column Name: REF_DURATION
	private String taskDcInd;                        //DB Column Name: DC_IND
	private String taskDcDate;                       //DB Column Name: DC_DATE
	private String taskStartDate;                    //DB Column Name: START_DATE
	private String taskVariations;                   //DB Column Name: VARIATIONS
	private String taskRemarks;                      //DB Column Name: REMARKS
	private String taskStatus;						 //DB Column Name: STATUS
	private String taskQty;
	private String taskSeq;
	private String taskTaskTmplCode;

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, documentNo = " + this.documentNo
			+ "\n, documentNo2 = " + this.documentNo2
			+ "\n, documentType = " + this.documentType
			+ "\n, taskLineNo = " + this.taskLineNo + "}\n";
		String colStr = "COL: {taskTaskCode = " + this.taskTaskCode
			+ "\n, taskTaskDesc = " + this.taskTaskDesc
			+ "\n, taskUserGroup = " + this.taskUserGroup
			+ "\n, taskDeadline = " + this.taskDeadline
			+ "\n, taskCompleteDate = " + this.taskCompleteDate
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate
			+ "\n, taskUserCode = " + this.taskUserCode
			+ "\n, taskExpStartDate = " + this.taskExpStartDate
			+ "\n, taskStartDate = " + this.taskStartDate
			+ "\n, taskVariations = " + this.taskVariations
			+ "\n, taskRemarks = " + this.taskRemarks
			+ "\n, taskStatus = " + this.taskStatus 
			+ "\n, taskExpFinishDate = " + this.taskExpFinishDate
			+ "\n, taskDuration = " + this.taskDuration
			+ "\n, taskRefLineNo = " + this.taskRefLineNo
			+ "\n, taskRefDuration = " + this.taskRefDuration + "}\n";
		return "ItemTaskRow.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getDocumentNo() {
		return this.documentNo;
	}
	
	public String getDocumentNo2() {
		return this.documentNo2;
	}

	public String getDocumentType() {
		return this.documentType;
	}

	public String getTaskLineNo() {
		return this.taskLineNo;
	}

	public String getTaskTaskCode() {
		return this.taskTaskCode;
	}

	public String getTaskTaskDesc() {
		return this.taskTaskDesc;
	}

	public String getTaskUserGroup() {
		return this.taskUserGroup;
	}

	public String getTaskDeadline() {
		return this.taskDeadline;
	}

	public String getTaskCompleteDate() {
		return this.taskCompleteDate;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public String getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public String getUpdateDate() {
		return this.updateDate;
	}

	public String getTaskUserCode() {
		return this.taskUserCode;
	}

	public String getTaskExpStartDate() {
		return this.taskExpStartDate;
	}

	public String getTaskExpFinishDate() {
		return this.taskExpFinishDate;
	}

	public String getTaskDuration() {
		return this.taskDuration;
	}

	public String getTaskRefLineNo() {
		return this.taskRefLineNo;
	}

	public String getTaskRefDuration() {
		return this.taskRefDuration;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = CommonUtil.toCode(companyCode);
	}

	public void setDocumentNo(String documentNo) {
		this.documentNo = CommonUtil.toCode(documentNo);
	}
	
	public void setDocumentNo2(String documentNo2) {
		this.documentNo2 = CommonUtil.toCode(documentNo2);
	}

	public void setDocumentType(String documentType) {
		this.documentType = CommonUtil.toCode(documentType);
	}

	public void setTaskLineNo(String taskLineNo) {
		this.taskLineNo = CommonUtil.trim(taskLineNo);
	}

	public void setTaskTaskCode(String taskTaskCode) {
		this.taskTaskCode = CommonUtil.trim(taskTaskCode);
	}

	public void setTaskTaskDesc(String taskTaskDesc) {
		this.taskTaskDesc = CommonUtil.trim(taskTaskDesc);
	}

	public void setTaskUserGroup(String taskUserGroup) {
		this.taskUserGroup = CommonUtil.trim(taskUserGroup);
	}

	public void setTaskDeadline(String taskDeadline) {
		this.taskDeadline = CommonUtil.trim(taskDeadline);
	}

	public void setTaskCompleteDate(String taskCompleteDate) {
		this.taskCompleteDate = CommonUtil.trim(taskCompleteDate);
	}

	public void setCreateUser(String createUser) {
		this.createUser = CommonUtil.trim(createUser);
	}

	public void setCreateDate(String createDate) {
		this.createDate = CommonUtil.trim(createDate);
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = CommonUtil.trim(updateUser);
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = CommonUtil.trim(updateDate);
	}

	public void setTaskUserCode(String taskUserCode) {
		this.taskUserCode = CommonUtil.trim(taskUserCode);
	}

	public void setTaskExpStartDate(String taskExpStartDate) {
		this.taskExpStartDate = CommonUtil.trim(taskExpStartDate);
	}

	public void setTaskExpFinishDate(String taskExpFinishDate) {
		this.taskExpFinishDate = CommonUtil.trim(taskExpFinishDate);
	}

	public void setTaskDuration(String taskDuration) {
		this.taskDuration = CommonUtil.trim(taskDuration);
	}

	public void setTaskRefLineNo(String taskRefLineNo) {
		this.taskRefLineNo = CommonUtil.trim(taskRefLineNo);
	}

	public void setTaskRefDuration(String taskRefDuration) {
		this.taskRefDuration = CommonUtil.trim(taskRefDuration);
	}

	public String getTaskDcDate() {
		return taskDcDate;
	}

	public void setTaskDcDate(String taskDcDate) {
		this.taskDcDate = CommonUtil.trim(taskDcDate);
	}

	public String getTaskDcInd() {
		return taskDcInd;
	}

	public void setTaskDcInd(String taskDcInd) {
		this.taskDcInd = CommonUtil.trim(taskDcInd);
	}

	public String getTaskStartDate() {
		return taskStartDate;
	}

	public void setTaskStartDate(String taskStartDate) {
		this.taskStartDate = taskStartDate;
	}

	public String getTaskRemarks() {
		return taskRemarks;
	}

	public void setTaskRemarks(String taskRemarks) {
		this.taskRemarks = taskRemarks;
	}

	public String getTaskVariations() {
		return taskVariations;
	}

	public void setTaskVariations(String taskVariations) {
		this.taskVariations = taskVariations;
	}

	public String getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(String taskStatus) {
		this.taskStatus = CommonUtil.trim(taskStatus);
	}
	
	public String getTaskQty() {
		return taskQty;
	}

	public void setTaskQty(String taskQty) {
		this.taskQty = taskQty;
	}

	public String getTaskSeq() {
		return taskSeq;
	}

	public void setTaskSeq(String taskSeq) {
		this.taskSeq = taskSeq;
	}

	public Iterator getTaskStatusValues(){
		return this.getTemplate().getComboboxValues(new SystemConstantsQuery().setType(ProjectConstants.CONSTANT_TYPE_ITEM_TASK_STATUS));
	}

	public String getTaskTaskTmplCode() {
		return taskTaskTmplCode;
	}

	public void setTaskTaskTmplCode(String taskTaskTmplCode) {
		this.taskTaskTmplCode = taskTaskTmplCode;
	}
	
	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}
